<?php
/* @var $this PinjamanController */
/* @var $model Pinjaman */
/* @var $form CActiveForm */
$anggota = Anggota::model()->find('ID_ANGGOTA='.$id);
?>

<div id="steps">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'pinjaman-form',
	'enableAjaxValidation'=>false,
)); ?>
<fieldset class="step">
	
	<p>
		Input Saldo Simpanan untuk : <b><?php echo $anggota->NAMA;?></b> 
		
	</p>
	
	<p>
		<label for="HistoryTabungan_TANGGAL_TRANSAKSI">Per Tanggal</label>
		<?php //echo $form->dateField($model,'TANGGAL_TRANSAKSI'); 
			$this->widget('zii.widgets.jui.CJuiDatePicker', array(
			 'name'=>"HistoryTabungan[TANGGAL_TRANSAKSI]", // the name of the field
			// 'value'=>$model->created,  // pre-fill the value
			 // additional javascript options for the date picker plugin
			 'options'=>array(
							 'showAnim'=>'fold',
							 'dateFormat'=>'dd-mm-yy',  // optional Date formatting
							 'debug'=>true,
							 'changeYear'=> true,
							 'changeMonth'=>true
						),
			 'htmlOptions'=>array(
			 'style'=>'height:17px;'
			 ),
			 ));
		?>
		<?php echo $form->error($model,'TANGGAL_TRANSAKSI'); ?>
	</p>

	<p>
		<?php echo $form->label($model,'JUMLAH'); ?>
		<?php echo $form->textField($model,'JUMLAH',array('id'=>'jumlah')); ?>
		<?php echo $form->error($model,'JUMLAH'); ?>
	</p>
	
	
	<p class="submit">
		<button id="registerButton" type="submit">Simpan</button>&nbsp;
		<button id="registerButton" type="button" onclick="window.location.href='<?php echo Yii::app()->createUrl("Tabungan/View/".$id);?>'">Kembali</button>
	</p>
	</fieldset>

<?php $this->endWidget(); ?>

</div><!-- form -->